package com.example.springboot_zc.controller;

import com.example.springboot_zc.pojo.classList;
import com.example.springboot_zc.service.classListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/classList")
public class classListController {
    @Autowired
    classListService classListService;

    @GetMapping("/select")
    public List<classList> getAll(){return classListService.list();}
}
